<?php

namespace Biz\model\activity;



class BizProjectPrepareModelRecord extends BizProjectBaseModel
{
    const _TABLE_NAME = 'biz_project_pre_record';


    use BizProjectTrait;

    CONST TYPE_1 = 1; // 需求简述
    CONST TYPE_2 = 2; // 预算

    public static function getListByCondition($condition, $field = "*")
    {

        $where = [
            "AND" => $condition,
            'ORDER' => ['id' => 'DESC'],
        ];
        if (empty($condition)) {
            unset($where["AND"]);
        }

        return self::select($field, $where);
    }

}
